#include "stdio.h"

int countDistinctWord(char s[]) {
	//在此处添加相应代码
		int i,count = 0, length = strlen(s);
	for (i = 0; i < length; i++)
	{
		if(s[i]==' ')  
            {  
                count++;  
            }  
     }
	return count+1;
}



int main(void) {
	char s[] = "a b c def asg da fe d c b";
	printf("%d", countDistinctWord(s));
	return 0;
}